A novel PID controller for pressure control of artificial ventilator using optimal rule based fuzzy inference system with RCTO algorithm

In order to improve the pressure tracking response of an artificial ventilator system, a novel proportional integral derivative (PID) controller is designed in the present work by utilizing an optimal rule-based fuzzy inference system (FIS) with a reshaped class-topper optimization algorithm (RCTO), which is named as (Fuzzy-PID). Firstly, a patient-hose blower-driven artificial ventilator model is considered, and the transfer function model is established. The ventilator is assumed to operate in pressure control mode. Then, a fuzzy-PID control structure is formulated such that the error and change in error between the desired airway pressure and actual airway pressure of the ventilator are set as inputs to the FIS. The gains of the PID controller (proportional gain, derivative gain, and integral gain) are set as outputs of the FIS. A reshaped class topper optimization algorithm (RCTO) is developed to optimize rules of the FIS to establish optimal coordination among the input and output variables of the FIS. Finally, the optimized Fuzzy-PID controller is examined for the ventilator under different scenarios such as parametric uncertainties, external disturbances, sensor noise, and a time-varying breathing pattern. In addition, the stability analysis of the system is carried out using the Nyquist stability method, and the sensitivity of the optimal Fuzzy-PID is examined for different blower parameters. The simulation results showed satisfactory results in terms of peak time, overshoot, and settling time for all cases, which were also compared with existing results. It is observed in the simulation results that the overshoot in the pressure profile is improved by 16% with the proposed optimal rule based fuzzy-PID as compared with randomly selected rules for the system. Settling time and peak time are also improved 60–80% compared to the existing method. The control signal generated by the proposed controller is also improved in magnitude by 80–90% compared to the existing method. With a lower magnitude, the control signal can also avoid actuator saturation problems.


Blower
Hose filter system PaƟent www.nature.com/scientificreports/ network is employed for breathing mechanics. In 25 , the authors have presented intelligent tuning methods for optimal setting of fuzzy logic controller. In 26 , authors have designed an optimal rule based fuzzy system with an improved genetic algorithm to control throttle valves for managed pressure drilling (MPD) systems. In 27 , a fuzzy system is developed for electromechanical devices to predict and classify faults. In 28 , a hybrid fuzzy expert system is proposed as a decision-support tool to lessen the risk linked with petrol gearbox stations. The fundamental problem with fuzzy control systems is that they require specialised expertise to operate properly for a given system. The expert knowledge base rules must work well together with the MFs of fuzzy inputs and outputs. Sometimes, it is difficult to get expert-knowledge-based rules for a system to make an efficient fuzzy controller. The mismatch of opinions among different experts about a system's response may lead to the selection of improper rules for a fuzzy system. Therefore, a fuzzy-PID control structure is proposed in this paper, with the outputs of the fuzzy inference system (FIS) being the gains of the PID controller (proportional gain, derivative gain, and integral gain) and the inputs of the FIS being the error and change in error between the desired airway pressure and actual airway pressure of the ventilator. In order to establish the best coordination between the input and output variables of the FIS, a reshaped class topper optimisation algorithm (RCTO) is used to decide optimal rule base for the systems. Under a variety of conditions, including parametric uncertainties, outside disturbances, sensor noise, and a time-varying breathing pattern, the optimised Fuzzy-PID controller is tested for the ventilator. Additionally, the system's stability is analysed using the Nyquist stability method, and the sensitivity of the ideal Fuzzy-PID is looked at in relation to various blower parameters.
The rest of the present work is organized as follows: The development of the ventilator mathematical model is shown in the "Mathematical modeling of ventilation system" section. In "Problem formulation" section, the problem formulation of the present work is stated. In "Proposed method of optimizing Fuzzy rules" section, proposed method of optimizing the rules of FIS is discussed in detail. The RCTO algorithm is presented in "Reshaped class topper optimization algorithm-RCTO" section. In "Simulation and result analysis" section, the simulation and result analysis are described. The conclusion and future work are stated in "Conclusion and future work" section.

Mathematical modeling of ventilation system
In this section, the mathematical representation of the mechanical ventilation system is presented. The working principle of a blower driven patient-hose type ventilator is illustrated in Fig. 1. As shown in Fig. 1, there are three sections in the ventilator, which include the blower, hose, and the lung system of patients. An actuator (electrical motor) is used for the blower system to produce the patient's required pressure. A hose system is used to link the blower with the patient's lungs. All symbols and related parameters of the system dynamic are given in Table 1.
The airflow from the blower system runs through the hose system towards the patient's lungs. The blower system causes air-flow at a rate of q out towards the lung system of the patient through the hose. Due to the effect of hose system resistance, the flow enters the lungs at a flow rate of q patient as shown in Fig. 1. For the exhalation process of patients, a leak on the hose system near the mouth with the leak resistance r leak is used such that patients can release CO 2 air at a rate q leak . Therefore, the air-flow dynamics can be expressed as follows 29 : From the diagram in Fig. 1, one can derive the following expressions for the flow rate of the blower, lungs, and leak considering nominal hose resistance ( r leak ), leak ( r leak ) and lungs system resistance ( r lungs ) as follows: Using (2) to (4) into (1) and rearranging, one obtains The dynamic p lungs can be defined as follows: (1) q patient = q out − q leak , (2) q out = p out − p airway r hose , www.nature.com/scientificreports/ Using (4) into (6), one can obtain (7) is analogous to a conventional RC electrical circuit where, p lungs is similar to voltage, q patient is current caused an air-pressure p airway into the lungs at a time constant r lungs c lungs . Using (5) and (7), one gets Considering p out as input, p airway and q patient as outputs of hose-patient ventilation system with p lungs as a state of the system, using (2), (3), (4), (5), and (8), one can write the system dynamics in state space form as follows: where (9) can be written in terms of transfer function as follows: For the inertia, blower system is associated with high frequency. It can be modeled in transfer function form as follows 29 : where ω n = 2π30 and ς = 1.

Problem formulation
For the patient hose blower driven ventilator system in (9), an optimal rule base control technique will be created to enhance the ventilator's capability to monitor airway pressure in the lung system of a critical patient during artificial ventilation.
The mathematical model of PID controller is presented as follows.
where k p is the proportional gain, k i is the integral gain and k d is the derivative gain. The robustness of a PID controller depends on the parameters of the controller under the operating conditions of the system. The PID controller may need to be tuned as the operating conditions of a system change. As a conventional PID controller is not able to self-tune the parameters, the performance of the PID controller will be reduced. Therefore, the concept of fuzzy control logic is used to make the PID controller auto-tune under parametric uncertainties or changes in the operating conditions of the system. A fuzzy controller works efficiently if the coordination between input and output variables of a fuzzy inference system is done accurately. As the FIS of the proposed controller has two inputs (error and change in error of actual airway pressure and desired airway pressure) and three outputs (parameters of the PID controller), there will be 49 rules for each output variable with 7 types of membership functions. Thus, a total of 49 × 3 rules (49 rules for each of proportional, derivative,  www.nature.com/scientificreports/ and integral gains) is required to optimize. For such a large number of optimization variables, a metaheuristic algorithm will be justified to avoid the calculation complexity of analytical methods. For this purpose, a classical algorithm called class topper optimization (CTO) is reshaped to form a reshaped class topper optimizer (RCTO) by utilising the concept of crossover in the updation stage of the classical CTO. During any disturbance or parametric uncertainty in the ventilation system, the gains of the PID controller will be adjusted automatically by the optimal rule-base fuzzy controller to achieve better control action by the PID controller for the ventilator system. A graphical representation of the proposed control scheme is shown in Fig. 2. The detailed procedures are described in the next section.

Proposed method of optimizing Fuzzy rules
Step 1: Formulation of Fuzzy Inference System (FIS) A rule base fuzzy inference system (FIS) is first created. The steps of designing FIS are as follows: Inputs of FIS Error (e) and change in error (ce) between desired and actual airway pressure of ventilator are taken as inputs of the FIS. The membership functions (MFs) for both of input variable of FIS are taken as follows: where NL is negative large, NM is negative medium, NS is negative small, ZE is zero, PS is positive small, PM is positive medium, PB is positive big.
In this paper, the setting of MFs for each input variable of the FIS system is taken from 16 . The detailed procedure for obtaining these optimal settings (ranges and different points of MFs) is presented in 16 . A graphical representation of such membership functions with the range and scaling of MFs for inputs to the FIS is presented in Fig. 3.

Outputs of FIS:
The parameters of PID controller ( k p , k i and k d ) are taken as outputs of FIS. The membership functions for each output variables of FIS are chosen as follows: The ranges, scaling and shapes of membership functions for fuzzy output variables ( k p , k i and k d ) of the FIS are taken from 16 . A graphical representation of such membership functions for fuzzy system outputs is presented in Fig. 4.
Rule base for FIS For the FIS system, a set of 49 rules for each of the output variables of the FIS is randomly set with knowledge of the performance of the PID controller for the system. The initial rules for the output variable k p of FIS are presented in Fig. 5a. Similarly, the rules for k i of FIS are presented in Fig. 5b. Rules for the k d of FIS are presented in Fig. 5c.
To optimize fuzzy rules, all linguistic rules must be converted to integer values so that one can easily generate the required number of randomised rules in numbers. Therefore, all linguistic rules are first normalized. A population of such normalized rules will be optimized through a metaheuristic algorithm. For this purpose, the following steps are continued in the proposed method.
Step  www.nature.com/scientificreports/ where "0" represents NL (negative large), "6" represents PB (positive big) and so on. Initial generation of rules: Initially, generate 49 random integer numbers within the range of 0 to 7 for each of the fuzzy output variables ( K p , K i and K d ). Each number will be truncated to the next lowest integer. For example, let a randomly generated number within [0,7] is 1.4. It will be truncated to 1; 0.25 will be 0, 3.6 will be 3, etc. Such normalized integer numbers will be assigned as rules for the FIS, which means the number 1 represents NM (negative medium) or 0 is NL (negative large), etc. Mathematically, the above steps are described as follows: The optimization variables are as follows: where

rules for k i
; and For N number of population, the initial generation of rules in the terms of integer number for each fuzzy output variable will be as follows: where N is number of population.
Randomly generated normalized rules are required to convert into linguistic terms for use in the FIS of the Fuzzy-PID controller.
Step 3: Set new rules in FIS using randomly generated normalized rules-conversion of normalized rule to linguistic form The randomly generated population of normalized rules will be converted to text form to update rules in FIS for the Fuzzy-PID controller as follows:   Step 1' . • Step 3.2: Create "then" portion of fuzzy rules-For each fuzzy output variable index, the consequents or "then" portions of fuzzy rules are created from the normalized rules. • Step 3.3: Set rules as text-For degree of support 1, the fuzzy rules will be set on the basis of antecedents, consequents, and FIS for each rule index.
Step 4: Defuzzification method By using the defuzzification method, the fuzzy values of the designed variables are transformed into exact values, which are then provided to the PID controller for tuning. The defuzzification approach utilised in this paper is the area barycenter method.
Step 3 and 4 will be repeated at each iteration until the termination criterion (maximum number of iterations) is met. An optimization algorithm will be used for this purpose. For a fixed number of iterations, the normalized rules will be updated, and the best one will be selected for the ventilator system.
Step 5: Optimizing FIS rules The fuzzy rules, as generated randomly in Step 3, will be optimized by using a metaheuristic algorithm. For this purpose, a reshaped class topper optimisation algorithm has been developed. The details of the algorithm  www.nature.com/scientificreports/ are presented in the next section. The fitness function will be evaluated each time to identify the best rules for FIS by the RCTO. The following performance index will be assessed to reduce the discrepancy between the deserved airway pressure and the pressure of the ventilator system.

Fitness function
The fitness function in the ventilation system is considered as a integral-time absolute error (ITAE) among the intended airway pressure and the actual airway pressure. It is defined as follows: where E 1 = P airway (desired) − P airway (actual).
Subject to the following constraints: where the term X k p , X k i and X k d are membership functions for output variables ( k p , k i , k d ) of the fuzzy controller. As stated in (15), a truncated number generated between o to 7 will represent a MF. www.nature.com/scientificreports/

Reshaped class topper optimization algorithm-RCTO
Basic class topper optimization algorithm. A meta-heuristics optimization approach called class topping optimization (CTO) has been proposed in 31 . The idea of the CTO is based on the learning strategy of a student in a class to become the best in the class. According to the CTO, there must be a topper (section topper) in each section. The best one among all the section toppers is identified as the class topper. Section toppers improve their performance by learning from the class topper. Other students in each section will improve their knowledge by learning from the corresponding section toppers. All participants will therefore, continuously improve their skills at each stage of the tests. The advantage of this algorithm is that, the complete search space of an optimization problem is divided into small sections (local search spaces). In each examination or iteration, the toppers (local solutions) in each section (local search space) are found during the exploitation stage of the CTO algorithm. Then, among all the local toppers, the best one (class topper or global solution) is selected. During the exploitation stage of CTO, each local solution (section toppers) will be updated on the basis of the class topper (global solution) and other solutions (students) will be updated based on section toppers. Let's assume that a class has (SEC) sections and (L) pupils in each section. The test will be repeated (j) times. The CTO has upgraded learner performance (Prf) as follows::

Updation rules for section topper (local optimum).
where Ex ST (L,j+1) represent the grades of L th pupil at (j + 1) th test, Whf t 1 is weight scale, Ca 1 is acceleration factor, rd 1 is random gain, Ex ST (L,j) grades of L th pupil or search agent at j th test, CT j represents the class-leader at j th test, ST j is the leader in a section at j th test, Prf ST (L,j+1) represent the updated achievement of L th pupil in the (j + 1) th test, Prf ST (L,j) is the score of L the pupil at j th test.

Updation rules of students (search agent) in a section (local space).
where Ex S (L ′ ,j+1) is marks of L ′ th learner in the (j + 1) th examination, Whf t 2 is weight-factor, Ca 2 is cofactor of acceleration, rd 2 is random value, Ex S (L ′ ,j) is score of L ′ learner in the j th test. ST j is the section-topper at j th test, L Proposed RCTO for optimizing fuzzy rules. In CTO, the complete search space (class) is divided into local search spaces (sections). The algorithm starts to find better solutions in each local search space. Then, the best one among all local optimal solutions (section toppers) is identified as the global solution (class topper) in the search space (class). According to the CTO, all local solutions (section toppers) in an iteration will be updated on the basis of the global solution in the same iteration. In RCTO, the local and global solutions in a particular iteration will be identified according to the classical CTO. The updating stage of initial solutions as presented in (19) to (22) will be reshaped to form RCTO for optimizing normalised fuzzy rules for FIS to design the Fuzzy-PID controller for ventilator models. The concept of reshaping is taken from the concept of crossover in evolutionary algorithms. The performance of the Fuzzy-PID controller with the initial rule base will be evaluated for the ventilator model (9) with the fitness function (18) at each iteration. According to the fitness values, a set of current best rules in each section (section toppers or local solutions) is identified. The best set of rules among all section toppers (local solutions) are also identified as the global best solution or class topper. Then, the cross-over technique is applied in two ways to generate new, updated solutions for the next iteration, as follows: • Crossover in class level In this stage, each randomly generated normalized rule for each of the fuzzy output variables will be updated on the basis of the current global solution or class topper (CT). The crossover operation will be conducted among each randomly generated normalized rule and the current best solution at an iteration at randomly selected positions in the search space. For this purpose, any number of rules of a fuzzy output variable from the current best solution among all local solutions (STs) are selected as CT. In this section, 10 rules for each fuzzy variable from the current best solutions are selected. One may follow different numbers of rules according to the chosen number of MF for a variable. For the same position in the present solutions, the crossover technique is applied. For ease of presentation, this step is presented below for a single variable. For other fuzzy output variables, the crossover technique will be the same. Let a set of randomly generated rules for fuzzy output variable k p is as follows: www.nature.com/scientificreports/ The crossover steps for fuzzy output variable k p is shown in Fig. 6a. In the diagram, for simplicity, the first 10 rules of the variable are shown to participate in the crossover technique. The rules can be selected randomly with any number. For other fuzzy output variables ( k i , and k d ), the crossover will be done in the same way. • Crossover in section level In this stage, each updated rule on the basis of a class topper (CT) or global solution will again participate in a crossover operation with the section toppers (STs) or local solutions in each section (local search space). The updated rules of a variable in the previous stage will be merged with the current best solution in a section (section topper or local optima) at the same iteration at a randomly selected position. For this purpose, any number of fuzzy output variables from the best solutions (section toppers, or ST) in each section are selected. In this paper, 10 randomly selected rules for each fuzzy variable form the current best solutions. One may follow different numbers of rules. For the same position in the present updated solutions, the crossover technique is applied. For the fuzzy output variable k p , the updation is shown in Fig. 6b. In the diagram, for simplicity, 10 rules between rules 11 and 20 of the variable k p have been presented to show the crossover technique. The rules can be selected randomly with any number. For other fuzzy output variables ( k i , and k d ), the crossover will be done in a similar way. After reaching the termination criterion, the best set of rules will be generated for each of the output variables of FIS for the Fuzzy-PID controller for the ventilator model.

Stability analysis
In this section, the stability of the closed-loop ventilator system based on the Fuzzy-PID controller with RCTO optimization is analyzed. The stability of the system is checked using the Nyquist determination approach. The transfer function of the closed-loop system is required to evaluate stability. The closed-loop transfer function of the optimized Fuzzy-PID-controlled ventilator is presented using a bilinear transformation in (27) j0) in order for the closed-loop system to be stable when ω vary from 0 (zero) to infinity 32 . The Nyquist plot of the pressure control system for ventilator model based on Fuzzy-PID-RCTO is produced in MATLAB and illustrated in Fig. 7. It is observed in Fig. 7 that the system does not include the (−1, j0) point. Thus, the Fuzzy-PID-RCTO-based ventilator pressure control system is closed-loop stable.

Simulation and result analysis
The simulation of the proposed control strategy for the ventilator model is presented in this section. For a set breathing profile, the rules of the FIS of the Fuzzy-PID controller are first optimized with the RCTO algorithm. Then, with the optimized rule-based FIS, the Fuzzy-PID controller is examined for the ventilator model under different scenarios.
The transfer function model of the ventilator, the proposed controller, and the RCTO algorithm are all implemented on the LabVIEW©2015 platform. The values of the parameters of the ventilator model are presented in Table 1. A unit pulse signal with an initial value of 0, a final value of 1, and a period of 2 is set as the desired pressure profile for the ventilator system. The simulation is done for 4 seconds. In this scenario, the RCTO algorithm is run for the ventilator model with the proposed control structure (Fig. 2) for the fitness function as described in (18). After a fixed number of iterations as a termination criterion (Table 1), the optimal set of rules of fuzzy variables (membership functions of k p , k i , and k d ) are obtained for the ventilator model as presented in Fig. 5d,e, and f, respectively. In Fig. 5, it is observed that most of the randomly selected rules for fuzzy output variables ( k p , k i , and k d ) are changed with optimal settings. In Fig. 5a, when error and change in error are both negative large (NL), the rule for k p is randomly set as positive big (PB). After optimizing rules for k p , an optimal rule of negative small (NS) is found instead of a randomly selected MF of positive big (PB), as shown in Fig. 5d. Similarly, most of the other rules for fuzzy output variables are found to be changed after optimizing them with RCTO, as shown in Fig. 5d,e, and f respectively. With membership functions of fuzzy variables (Figs. 3 and 4) and the obtained optimal rules (Fig. 5d,e, and f), the proposed Fuzzy-PID controller is verified for the ventilator for the same breathing pattern of the unit pulse signal with initial value 0, final value 1, and period 2. The gains of the PID controller set by the optimal FIS are found as follows: k p is 0.289085, k i is 62.8799, and k d is 0.000480583. The pressure-tracking efficiency of the ventilator with the optimal rule-base Fuzzy-PID controller is illustrated in Fig. 8a. It is seen in Fig. 8a that the pressure pattern of the ventilator system is effectively monitoring the intended pressure. A significant improvement in the pressure traceability profile has been observed in terms of peak time ( t p (s) ), overshoot ( M p ), and settling time ( t s (s) ) as tabulated in Table 2. It can be observed in Fig. 8a that the overshoot in pressure profile is improved by 16% in comparison with Fuzzy-PID where rules are randomly selected 30 . The overshoot in the pressure profile shown in Fig. 8a, is also low as compared to other methods for the same system. Settling time and peak time are also improved 60-80% compared to the existing method. The control signal for such a case is shown in Fig. 8b. The fuzziness of the proposed controller causes the control signal to be unsteady for a very brief period of time. Additionally, it has been found that the controlling signal obtained using the optimal rule based Fuzzy-PID has a substantially lower amplitude than the results obtained so far 16 . Higher magnitude actuating signals necessitate larger actuators, which may create an electric risk during the ventilation cycle. A massive motor is also expensive. Control signal generated by the proposed (27) y(s) r(s) = 8.635s 3 + 5287s 2 + 1.183e06s + 1.131e07 s 4 + 391.1s 3 + 4.287e04s 2 + 1.377e06s + 1.131e07 Figure 7. Nyquist diagram of the pressure control for the ventilator based on optimal Fuzzy − PID. www.nature.com/scientificreports/ controller is also improved in magnitude by 80% to 90% compared to the existing method. Therefore, a modest motor is sufficient to get the ventilator to work as required with the proposed controller 33 . An airway pressure disruption of 1% for 0.5 s is introduced in order to verify the response of the optimized Fuzzy-PID controller for the ventilator system under external disturbance. Figure 9a shows how the system performed while there was a perturbation. The turbulence is effectively solved by the suggested controller, and the pressure pattern gradually approached the ideal profile. The reliability of the suggested controller is also examined for variations in lung parameters such as compliance and resistance. For this purpose, a baseline respiration cycle   www.nature.com/scientificreports/ of 5 mbar of PEEP and 20 mbar of PIP with a desired cycle time of 2 s is considered. In this case, the action of the controller is observed and illustrated in Fig. 9b. The suggested control strategy worked effectively to settle the airway pressure profile to the desired profile under such parametric changes.
The ideal rhythm for breathing may alter over time according to the patient's labour during ventilation. Thus, to verify the resilience of the suggested controller, a variable breathing pattern of 5 mbar of PEEP, 20 mbar of PIP, 2 s of inspiration time, and 3 s of expiration time is also examined. In this scenario, the gains of the PID controller tuned by the optimal rule-based FIS are obtained as k p is 0.861544, k i is 215.268 and k d is 0.0119251 for the ventilator model. The performance of the controller is also illustrated in Fig. 10a. It can be observed that the pressure profile of the ventilator is tracking the reference breathing pattern with a considerable amount of overshoot for a short duration of time. To examine the response of the controller in the presence of measurement noise, the system is assumed to have a gaussian white noise of zero mean with 1 % standard deviation. It is demonstrated how the ventilator reacts to such measurement noise in Fig. 10b.

Remark 1
During optimizing the fuzzy rules of the proposed Fuzzy-PID controller with the RCTO algorithm for the ventilator model, the RCTO algorithm takes 158.12 s when run on an Intel (R), Core(TM) i7 − 8700 , 3.20-3.19 GHz CPU, and 32.0 GB of RAM desktop computer. It is not necessary to continuously optimise the rules of the proposed controller under other circumstances once they have been optimised for the ventilator system. Under any disturbance, a fuzzy controller can change the gains of the PID controller for the ventilator model. The ventilator model's pressure is observed to be controlled by the optimised Fuzzy-PI controller in 0.013 s when there is a disturbance of 1 %change in airway pressure at 0.5 s (Fig. 9a). It takes 0.163 s to adjust the PID controller to achieve the required response for a breathing pattern that varies over time (Fig. 10).

Conclusion and future work
The aim of this paper is to design an efficient Fuzzy-PID controller to enhance the pressure monitoring performance of an artificial ventilator. Therefore, a systematic method is developed to optimize the rules of the fuzzy inference system of the suggested control structure. The designed controller is validated with a blower-driven patient-hose ventilator model operated in pressure-controlled ventilation mode. The simulation results show the effectiveness of the control scheme in different scenarios. The proposed controller is able to adjust the PID gains under parametric uncertainties and disturbances. In comparison to previous findings, the ventilator model's ability to track pressure is enhanced in terms of response time, overshoot, and steady-state error.
The proposed method is simple and effective for designing a robust, optimal rule-based fuzzy controller for ventilation models. The accuracy of the proposed scheme can be further improved by using a fractional-order membership function. One of the drawbacks of the optimizing FIS is that during the periods of optimizing rules, the MFs will try to fix themselves, which may change the response of the system in real-world applications. One may extend the present work to overcome such an issue. The computation time of the fuzzy controller can also be taken care of in future work. In this paper, the linear patient-hose blower driven ventilator model is examined with the proposed control scheme. As biological systems are complex and non-linear in nature. Thus, optimizing such a large number of fuzzy rules with a swarm based optimization algorithm may not provide an optimal solution for a nonlinear model of a ventilator. In this regard, one may verify a reinforcement learning-based Q-learning optimization technique 34 for the nonlinear ventilator model as a future scope in this field. www.nature.com/scientificreports/

Data svailibility
The corresponding author will disclose the datasets utilized and/or processed throughout the current work upon reasonable request.